package cn.com.websocket.enums;

/***
 ** @category 通用枚举
 ** @author qing.yunhui
 ** @email: qingyh@glodon.com
 ** @createTime: 2021-08-09 16:55
 **/
public enum YesOrNoEnum implements ICommonEnum {
    NO("0","否","禁用"),
    YES("1","是","启用");
    private final String code;
    private final String value;
    private final String desc;
    YesOrNoEnum(String code, String value, String desc) {
        this.code = code;
        this.value = value;
        this.desc=desc;
    }
    public String getCode() { return code; }
    public String getValue() { return value; }
    @Override
    public Integer getKey() { return Integer.parseInt(code); }
    public String getDesc() { return desc; }
}
